/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lu.med.praxiswahl.wahlumed.model.beans;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 
 * @author pkendzo
 */
@Entity
@Table(name = "PRAXIS_RECHNUNGS_DETAILS")
public class BillsContentsTBL implements Serializable
{

    private static final long serialVersionUID = 1L;

    public BillsContentsTBL()
    {

    }

    @Id
    @Column(name = "RECHNUNGS_DETAILS_ID")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long billsContentsID;

    private String date_dent_heure;

    private String h;
    private String med;
    private String code_tarif;

    private int nbr;
    private double montant;
    private String med_pres;

    /*
     * @ManyToOne
     * 
     * @JoinColumn(name ="RECHNUNGS_ID") private BillsTBL rechnungs_nummer;
     */

    @ManyToOne
    @JoinColumn(name = "RECHNUNGS_ID")
    private HonorarTBL rechnungs_nummer;

    public HonorarTBL getRechnungs_nummer()
    {
	return rechnungs_nummer;
    }

    public void setRechnungs_nummer(HonorarTBL prechnungs_nummer)
    {
	rechnungs_nummer = prechnungs_nummer;
    }

    public static long getSerialVersionUID()
    {
	return serialVersionUID;
    }

    public long getBillsContentsID()
    {
	return billsContentsID;
    }

    public void setBillsContentsID(long billsContentsID)
    {
	this.billsContentsID = billsContentsID;
    }

    /*
     * public BillsTBL getRechnungs_nummer() { return rechnungs_nummer; }
     * 
     * public void setRechnungs_nummer(BillsTBL rechnungs_nummer) {
     * this.rechnungs_nummer = rechnungs_nummer; }
     */

    public String getCode_tarif()
    {
	return code_tarif;
    }

    public void setCode_tarif(String code_tarif)
    {
	this.code_tarif = code_tarif;
    }

    public String getH()
    {
	return h;
    }

    public void setH(String h)
    {
	this.h = h;
    }

    public String getMed()
    {
	return med;
    }

    public void setMed(String med)
    {
	this.med = med;
    }

    public String getDate_dent_heure()
    {
	return date_dent_heure;
    }

    public void setDate_dent_heure(String date_dent_heure)
    {
	this.date_dent_heure = date_dent_heure;
    }

    public int getNbr()
    {
	return nbr;
    }

    public void setNbr(int nbr)
    {
	this.nbr = nbr;
    }

    public double getMontant()
    {
	return montant;
    }

    public void setMontant(double montant)
    {
	this.montant = montant;
    }

    public String getMed_pres()
    {
	return med_pres;
    }

    public void setMed_pres(String med_pres)
    {
	this.med_pres = med_pres;
    }

}
